package org.obm.mailbox.validator;

import org.obm.lmtp.backend.IMailboxValidator;
import org.obm.lmtp.backend.LmtpAddress;
import org.obm.lmtp.backend.LmtpReply;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Checks that emails are valid for delivery
 * 
 * @author tom
 *
 */
public class LdapValidator implements IMailboxValidator {

	private static final Logger logger = LoggerFactory
			.getLogger(LdapValidator.class);

	@Override
	public LmtpReply getAddressStatus(LmtpAddress address) {
		logger.info("validating " + address);
		return LmtpReply.RECIPIENT_OK;
	}

}
